NetBSD-Bugs archive

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

Re: bin/48138



The following reply was made to PR bin/48138; it has been noted by GNATS.

From: Steffen Nurpmeso <steffen%sdaoden.eu@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/48138
Date: Sat, 05 May 2018 15:09:33 +0200

 --- >8 ---  Forwarded message  --- 8< ---
 Date: Wed, 25 Apr 2018 19:58:50 +0200
 From: Steffen Nurpmeso <sdaoden%gmail.com@localhost>
 To: (NetBSD Problem Report DB Administrator) <gnats%NetBSD.org@localhost>
 Subject: Re: Reminder of 1 NetBSD Problem Report awaiting feedback
 Message-ID: <20180425175850.DInVR%sdaoden%gmail.com@localhost>
 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc
 
 gnats%NetBSD.org@localhost (NetBSD Problem Report DB Administrator) wrote:
   ...
  |bin/48138 - non-critical low priority sw-bug
  | sh(1) wait(1) builtin fails after bg job was SIG(STOP
  | http://gnats.NetBSD.org/cgi-bin/query-pr-single.pl?number=48138
 
 I can confirm this works on 8.0 RC1, though your
 
   [jinx]$ kill -STOP %1
   [1] + Suspended (signal)      /bin/sleep 30 &
   [jinx]$ wait %1
   [jinx]$ echo $?
   127
 
 is
 
   #[steffen@nbsd]$ kill -STOP %1
   [1] + Suspended (signal)      /bin/sleep 60 &
   #[steffen@nbsd]$ jobs
   [1] + Suspended (signal)      /bin/sleep 60 &
   #[steffen@nbsd]$ wait;echo $?
   0
   #[steffen@nbsd]$ wait %1;echo $?
   145
 
 for me.  By the why it is nice that WEXITSTATUS() ensures that the
 given argument is something that the address can be taken off, as
 required by POSIX.  musl does not, for example.
 
 --steffen
 |
 |Der Kragenbaer,                The moon bear,
 |der holt sich munter           he cheerfully and one by one
 |einen nach dem anderen runter  wa.ks himself off
 |(By Robert Gernhardt)
 



Home | Main Index | Thread Index | Old Index