Hi all:
I am running mysql-max 3.23.51 on linux 2.4.x and
my shell is bash. The 'huponexit' shell option
is off. The mysqld (mysql-max daemon) is
probably not important for this discussion, any
other daemon would do as well.
Firstly, I can start mysqld (or other programs)
asynchronously by saying:
#> mysqld &
[1] 858
#>
bin/mysqld: ready for connections
#> jobs
[1]+ Running bin/mysqld &
#>
It's quite interesting that if I now say 'fg', the
process comes up in the foreground but after that
I cannot type anything (ctrl-z or bg have no affect).
The daemon is trapping everything. But let's say,
I don't say 'fg', instead, I say logout.
#> logout
Well, I am now stuck, am *not* logged out, and the
shell
does not accept any more commands. I can only logout
if I kill the mysqld process from another shell (in
another
console). At *that* point, I see some 'mysql shutting
down'
messages and then I finally logout.
I see the exact same behavior even if I originally
start the
daemon by saying:
#> nohup mysqld &
I was wondering, is this normal behavior ? I mean
if I have a async process running in the background,
(started either with '&' or 'nohup'), then I should be
able to exit the shell by saying 'logout' right ? How
can a asynch daemon prevent me from logging out ?
'logout' should kill mysqld (whether that's desirable
is another story) but why/how does mysqld prevent
a logout in the first place ?
Anyone have an explanation ?
Best regards,
--j
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php