Open GoogleCodeExporter opened 9 years ago
More info:
A Perl script that simulates the current process termination behaviour and
creates
orphan processes:
http://github.com/chocolateboy/pmsencoder/blob/master/dev/mencoder_orphanizer.pl
winp article:
http://weblogs.java.net/blog/2008/03/16/introducing-winp-windows-process-manipul
ation-library
Why *not* to use kill -9:
http://sial.org/howto/shell/kill-9/
Forum report of "zombie" processes:
http://ps3mediaserver.org/forum/viewtopic.php?f=7&t=3094&start=0
Microsoft warn against TerminateProcess() (ExitProcess() is not a solution as it
terminates the *current* process):
The TerminateProcess function is used to unconditionally cause a process to
exit. The
state of global data maintained by dynamic-link libraries (DLLs) may be
compromised
if TerminateProcess is used rather than ExitProcess.
Original comment by chocol...@cpan.org
on 16 Feb 2010 at 12:34
Yeah, the kill -9 is a hack that was implemented because there were processes
that
kept running due to a bug I think. I'm not sure if it's needed anymore.
I'll check if everything still works as expected when removing it.
Shagrath will need to take a look at the Windows part.
Original comment by robinmul...@gmail.com
on 23 Mar 2010 at 10:13
Just to be sure, have you tested this on Linux/OS X or just the Windows part?
Original comment by robinmul...@gmail.com
on 23 Mar 2010 at 10:16
I've tested it on Windows XP Pro SP3 and Ubuntu 9.10.
Original comment by chocol...@cpan.org
on 23 Mar 2010 at 7:12
Original comment by shagr...@gmail.com
on 29 Sep 2010 at 10:23
winp downloads: http://maven.dyndns.org/2/org/jvnet/winp/winp/
Original comment by chocol...@cpan.org
on 8 Oct 2010 at 8:48
The patch was tested against winp 1.14, which is still the latest version. The
only reference to the version is the Eclipse .classpath entry, which should be
adjusted accordingly if a new version is released/used.
Original comment by chocol...@cpan.org
on 8 Oct 2010 at 9:14
Patch updated (against r412) to remove the Windows fix as per the discussion
starting here:
http://ps3mediaserver.org/forum/viewtopic.php?f=14&t=7844&start=130#p38719
Original comment by chocol...@cpan.org
on 1 Nov 2010 at 12:59
Attachments:
Issue 778 has been merged into this issue.
Original comment by chocol...@cpan.org
on 13 Jan 2011 at 7:57
Fixed in r422.
Original comment by chocol...@cpan.org
on 15 Jan 2011 at 4:43
OS: Ubuntu 8.04
PS3MediaServer version: r472
It looks like the problem has not been solved yet. The mencoder process got
killed correctly when end of the movies is reached, however when I stop the
movie somewhere in the movie the mencoder process is still active while in the
debug file states that the process including the child process have been killed.
This problem occurs on any files I watch (mkv, mpg, vob, avi etc.).
I don't have this problem with r412 release.
Original comment by buu.tam...@gmail.com
on 4 Feb 2011 at 3:08
Original comment by chocol...@cpan.org
on 4 Feb 2011 at 3:12
Tried to use windows taskkill to forcefully close all children processes and it
seems to work OK. WINP is quite buggy when talking about child processes(core
win processes were killed) so I patched it this way(quite dirty patch):
http://code.google.com/p/pms-exsport/updates/list
Check r8/r10
Original comment by ExSportCZ@gmail.com
on 5 Feb 2011 at 10:28
> It looks like the problem has not been solved yet.
Thanks for the report. This should be improved (for Linux/Unix) in r484.
Original comment by chocol...@cpan.org
on 7 Feb 2011 at 2:30
Original comment by chocol...@cpan.org
on 8 Feb 2011 at 9:56
The problem has been fixed with r484 and higher. Thanks for the quick fix.
Original comment by buu.tam...@gmail.com
on 9 Feb 2011 at 8:54
On Windows, there's also this:
http://technet.microsoft.com/en-us/sysinternals/bb896683
Original comment by chocol...@cpan.org
on 21 Feb 2011 at 11:58
For Windows you can use built-in taskkill so you don't need to pack this tool
with PMS.
I used it already in my custom build(totally dirty):
http://code.google.com/p/pms-exsport/updates/list
Check r8/r10
Original comment by ExSportCZ@gmail.com
on 22 Feb 2011 at 8:30
Issue 1264 has been merged into this issue.
Original comment by chocol...@cpan.org
on 5 Nov 2011 at 11:15
Original issue reported on code.google.com by
chocol...@cpan.org
on 16 Feb 2010 at 12:23Attachments: