bug-hurd
[Top][All Lists]
Advanced

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

Re: Small test example for: cannot create /dev/null: Interrupted system


From: Svante Signell
Subject: Re: Small test example for: cannot create /dev/null: Interrupted system call
Date: Tue, 08 Jul 2014 09:24:14 +0200

On Mon, 2014-07-07 at 13:29 +0200, Svante Signell wrote:
> Hi,
> 
> found out when running the testsuite for elfutils that the following
> code reproducibly triggers the interrupted system call bug:
> 
> #! /bin/sh                                                                    
>   
> echo 'main () { while (1) pause (); }' > native.c
> gcc -o native -g native.c > /dev/null 2>&1 &&
> { ./native 2>&1 & native=$! ; } || native=0
> kill -9 $native || :
> wait $native 2 > /dev/null || :
> 
> 
> #> sh ./test.sh
> ./test.sh: 6: ./test.sh: cannot create /dev/null: Interrupted system
> call
> 
> HTH!

Additional info (the above related to wait, this one to waitpid):
#> apt-get update
...
Unpacking gpgv (1.4.18-1) over (1.4.16-1.2) ...
Processing triggers for man-db (2.6.7.1-1) ...
E: Couldn't wait for subprocess - waitpid (1073741928: Computer bought
the farm)
Connection to localhost closed by remote host.
Connection to localhost closed.





reply via email to

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