Title new "mb db shell" command can't be resumed after suspension to
background
Priority bug Status resolved
Superseder Nosy List poeml
Assigned poeml Keywords
To
msg96 (view) Author: poeml Date: 2009-12-07.02:47:39
(#:~)- mb db shell
psql (8.4.1)
Type "help" for help.
mb=>
[1] + 6290 suspended mb db shell
(root@mbwork)(235/pts/0)(03:46am:12/07/09)-
(#:~)- fg
fg
[1] + 6290 continued mb db shell
msg97 (view) Author: poeml Date: 2009-12-07.02:48:23
It hangs then. Probably psql is spawned in the wrong way, gets the SIGTSTP but not
the SIGCONT.
msg98 (view) Author: poeml Date: 2009-12-07.02:50:16
Indeed, exactly that happens:
(suspended)
root 6330 2.1 1.8 14096 9268 pts/0 T 03:49 0:00 | _
/usr/bin/python /usr/bin/mb db shell
root 6332 0.1 0.4 7560 2396 pts/0 T 03:49 0:00 | _
psql
(resumed)
root 6330 0.7 1.8 14096 9268 pts/0 S+ 03:49 0:00 | _
/usr/bin/python /usr/bin/mb db shell
root 6332 0.0 0.4 7560 2396 pts/0 T+ 03:49 0:00 | _
psql
msg99 (view) Author: poeml Date: 2009-12-07.03:14:46
fixed in r7925
http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/dbmaint.py?
r1=7925&r2=7924&pathrev=7925
msg106 (view) Author: poeml Date: 2009-12-11.21:17:56
closing, since it's fixed and works.
History
Date User Action Args
2009-12-11 21:17:56 poeml set status: testing -> resolved
messages: + msg106
2009-12-07 03:14:46 poeml set status: chatting -> testing
messages: + msg99
2009-12-07 02:50:16 poeml set messages: + msg98
2009-12-07 02:48:23 poeml set status: unread -> chatting
messages: + msg97
2009-12-07 02:47:40 poeml create
(end of migrated issue)
Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue32
msg96 (view) Author: poeml Date: 2009-12-07.02:47:39
(#:~)- mb db shell
psql (8.4.1)
Type "help" for help.
mb=>
[1] + 6290 suspended mb db shell
(root@mbwork)(235/pts/0)(03:46am:12/07/09)-
(#:~)- fg
fg
[1] + 6290 continued mb db shell
msg97 (view) Author: poeml Date: 2009-12-07.02:48:23
It hangs then. Probably psql is spawned in the wrong way, gets the SIGTSTP but not
the SIGCONT.
msg98 (view) Author: poeml Date: 2009-12-07.02:50:16
Indeed, exactly that happens:
(suspended)
root 6330 2.1 1.8 14096 9268 pts/0 T 03:49 0:00 | _
/usr/bin/python /usr/bin/mb db shell
root 6332 0.1 0.4 7560 2396 pts/0 T 03:49 0:00 | _
psql
(resumed)
root 6330 0.7 1.8 14096 9268 pts/0 S+ 03:49 0:00 | _
/usr/bin/python /usr/bin/mb db shell
root 6332 0.0 0.4 7560 2396 pts/0 T+ 03:49 0:00 | _
psql
msg99 (view) Author: poeml Date: 2009-12-07.03:14:46
fixed in r7925
http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/dbmaint.py?
r1=7925&r2=7924&pathrev=7925
msg106 (view) Author: poeml Date: 2009-12-11.21:17:56
closing, since it's fixed and works.
(end of migrated issue)