From: Jonas K. <jon...@gm...> - 2006-12-29 15:41:09
|
Hi CMUS developer(s), while writing a CMUS plugin which posts track data to last.fm and which is run via status_display_program, I noticed that spawn() does not close file handles after forking (beside stdin), so the status_display_program inherits all of them, including the file handle of the audio device. This results in some kind of misbehavior, because if the program takes some time to finish (as my plugin does) and if CMUS exits in the meanwhile, the file handle of the audio device is still open and can not be used by other programs. Would it be possible to close at least the audio device file handle in spawn() after forking? I would have written a patch myself, but I don't really understand how that ops->close stuff works. ;) Regards, Jonas |