bug-hurd
[Top][All Lists]
Advanced

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

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


From: Svante Signell
Subject: Small test example for: cannot create /dev/null: Interrupted system call
Date: Mon, 07 Jul 2014 13:29:20 +0200

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!




reply via email to

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