Bug 1600 - --bg options to work in daemon() function
Summary: --bg options to work in daemon() function
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: initscripts (show other bugs)
Version: unstable
Hardware: all Linux
: P4 normal
Assignee: Dmitry V. Levin
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-21 17:18 MSK by Igor Homyakov
Modified: 2003-08-25 15:18 MSD (History)
0 users

See Also:


Attachments
0001600-functions.diff (812 bytes, text/x-diff)
2002-12-08 17:01 MSK, Igor Homyakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Homyakov 2002-11-21 17:18:08 MSK
при использовании конструкции
daemon --bg some_program

эта конструкция приобразуется в строку вида
initlog $INITLOG_ARGS -c \"$*$bg\" 
при вызове которой bg=\'&\' передаеться как опция программе
минуя shell

в ре-те запускаемая программа не может распознать опцию \'&\' и завершаеться не удачно

---

---

Comment 1 Dmitry V. Levin 2002-12-08 17:02:25 MSK
Please try attached patch.
Comment 2 Dmitry V. Levin 2002-12-08 17:02:25 MSK
Please try attached patch.
Comment 3 Igor Homyakov 2002-12-10 16:53:44 MSK
solved
Comment 4 Igor Homyakov 2002-12-10 16:53:44 MSK
solved
Comment 5 Dmitry V. Levin 2002-12-28 19:31:12 MSK
Fixed in 5.49-ipl46mdk
Comment 6 Dmitry V. Levin 2002-12-28 19:31:12 MSK
Fixed in 5.49-ipl46mdk