>Number: 181435 >Category: bin >Synopsis: sh(1) wait(1) builtin fails after bg job was >SIG(STOP|TSTP|CONT) controlled >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 20 17:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Steffen >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD fbsd10 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sun Jun 23 02:55:37 UTC 2013 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description: I simply paste over, i somehow lost the log of the FreeBSD session (sorry!) * [steffen <at> nhead]$ /bin/sleep 30 & * [steffen <at> nhead]$ jobs [1] + Running /bin/sleep 30 * [steffen <at> nhead]$ kill -STOP %1 * [steffen <at> nhead]$ jobs [1] + Running /bin/sleep 30 * [steffen <at> nhead]$ wait %1 [1] + Suspended (signal) /bin/sleep 30 * [steffen <at> nhead]$ kill -CONT %1 * [steffen <at> nhead]$ jobs [1] + Suspended (signal) /bin/sleep 30 * [steffen <at> nhead]$ wait %1 * [steffen <at> nhead]$ wait * [steffen <at> nhead]$ jobs [1] + Suspended (signal) /bin/sleep 30 * [steffen <at> nhead]$ [1] Done /bin/sleep 30 * [steffen <at> nhead]$ Of the tested mksh(1), NetBSD sh(1), dash(1), FreeBSD sh(1), Mac OS X /bin/ksh and bash(1), only the latter two "do the right thing" (satisfy me, that is): Mac OS X /bin/ksh(1): ?0[steffen <at> sherwood]$ /bin/sleep 30 & [1] 43762 ?0[steffen <at> sherwood]$ jobs [1] + Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ wait ^C?258[steffen <at> sherwood]$ jobs [1] + Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ kill -STOP %1 ?0[steffen <at> sherwood]$ jobs [1] + Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ wait %1 [1] + Stopped (SIGSTOP) /bin/sleep 30 & ?0[steffen <at> sherwood]$ kill -CONT %1 ?0[steffen <at> sherwood]$ jobs [1] + Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ wait %1 ^C?258[steffen <at> sherwood]$ jobs ?0[steffen <at> sherwood]$ bash(1): ?0[steffen <at> sherwood]$ /bin/sleep 30 & [1] 43752 ?0[steffen <at> sherwood]$ wait %1 ^C ?1[steffen <at> sherwood]$ kill -STOP %1 ?0[steffen <at> sherwood]$ jobs [1]+ Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ wait %1 [1]+ Stopped /bin/sleep 30 ?145[steffen <at> sherwood]$ wait %1 bash: warning: wait_for_job: job 1 is stopped ?145[steffen <at> sherwood]$ kill -CONT %1 ?0[steffen <at> sherwood]$ jobs [1]+ Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ wait %1 ^C ?1[steffen <at> sherwood]$ jobs [1]+ Running /bin/sleep 30 & ?0[steffen <at> sherwood]$ [1]+ Done /bin/sleep 30 >How-To-Repeat: >Fix: no. sorry. >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"