[tex-live] thumbpdf/No such signal: SIGHUP

Fabrice Popineau Fabrice.Popineau@supelec.fr
Sun, 26 May 2002 02:04:46 +0200

* Heiko Oberdiek <oberdiek@ruf.uni-freiburg.de> writes:

> Hello Fabrice, if I run thumbpdf under Windows98 and TeX Live 7 of
> 2002/05/20, then I get the warning: No such signal: SIGHUP ...

D:\Source\fptex\texk\tetex>diff -u thumbpdf~ thumbpdf
--- thumbpdf~   Thu Apr 18 13:25:53 2002
+++ thumbpdf    Sun May 26 01:47:17 2002
@@ -244,7 +244,7 @@

 $SIG{__DIE__} = \&cleanup;
-$SIG{'HUP'}   = \&cleanup;
+$SIG{'HUP'}   = \&cleanup if ($^O !~ /msWin32/i);
 $SIG{'INT'}   = \&cleanup;
 $SIG{'QUIT'}  = \&cleanup;
 $SIG{'TERM'}  = \&cleanup;
@@ -1476,7 +1476,7 @@
 sub setsignals {
   my $func = $_[0];
   $SIG{__DIE__} = $func;
-  $SIG{'HUP'}   = $func;
+  $SIG{'HUP'}   = $func if ($^O !~ /mswin32/i);
   $SIG{'INT'}   = $func;
   $SIG{'QUIT'}  = $func;
   $SIG{'TERM'}  = $func;

Applied at least to my source tree and binaries.

This raises the more general question of Perl script. I was happy to
be able to provide .exe files thanks to the Perl compiler, because :
- Perl is not needed on windows
- scripts can be run off the cdrom
but :
- people can't upgrade the scripts

It is likely that other problems will surface. To get some ideas :
- gswin32c.exe is not on the user's PATH. Should I clobber the user's
PATH with this, given the fact that gsdll32.dll (hence gswin32c.exe)
can be found using the registry ?
- TEMP areas : there is a system call to get the TEMP dir under WIn32
(not a C library one, a Win32 one, GetTempPath()) and it should be
used instead all of the checkings about some env var or hardwired /tmp
- signals
- texfind does not work because it is using the FindBin.pm module and
I'm not sure to be able to fix it in time.

On the other hand, texshow, texexec, texdoctk and most others seem to