bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stdlib self test: error: 'SIGTERM' undeclared


From: Simon Josefsson
Subject: Re: stdlib self test: error: 'SIGTERM' undeclared
Date: Sun, 26 Sep 2010 14:41:54 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Thanks for installing that.  I should have tested more, there is another
problem too:

/home/jas/src/gnulib/m/gltests/test-sys_wait.h:41: undefined reference to 
`_WSTOPSIG'

We _could_ do this:

-/* The signal that terminated a process is not known posthum.  */
+/* The signal that terminated/stopped a process is not known posthum.  */
 # define WTERMSIG(x) SIGTERM
+# define WSTOPSIG(x) SIGSTOP
 

However SIGSTOP doesn't exist in MinGW headers so it will fail.  The APR
defines SIGSTOP to 19 on Windows according to [1].  Possibly something
that could go into gnulib's signal.h?

Generally, I'm not convinced this approach leads to reliable code, but I
don't have a self test that would fail with this solution.

/Simon
[1] http://mail-archives.apache.org/mod_mbox/apr-dev/200305.mbox/address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]