This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/29324] add wait handling hook



------- Comment #6 from daney at gcc dot gnu dot org  2007-05-12 18:38 -------
Subject: Bug 29324

Author: daney
Date: Sat May 12 17:37:55 2007
New Revision: 124638

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124638
Log:
        PR libgcj/29324
        * include/posix-threads.h (_Jv_BlockSigchld): Declare.
        (_Jv_UnBlockSigchld): Same.
        * posix-threads.cc: Include posix-threads.h.
        (block_sigchld) Rename to...
        (_Jv_BlockSigchld) ... this.
        (_Jv_UnBlockSigchld): New function.
        (_Jv_InitThreads): Call _Jv_BlockSigchld in place of block_sigchld.
        (_Jv_ThreadStart): Same.
        * java/lang/PosixProcess$ProcessManager.h: Regenerate.
        * java/lang/PosixProcess.java: Clean up imports.
        (ProcessManager): Make final.
        (ProcessManager.queue): Genericise and make private.
        (ProcessManager.pidToProcess): Remove.
        (ProcessManager.liveProcesses): New field.
        (ProcessManager.reaperPID): Remove.
        (ProcessManager.nativeData): New field.
        (ProcessManager.removeProcessFromMap): Remove.
        (ProcessManager.addProcessToMap):Remove.
        (ProcessManager.addToLiveProcesses): New method.
        (ProcessManager.run): Rewritten.
        (ProcessManager.reap): Change method signature,
        (getErrorStream): Correct formatting.
        (getInputStream): Same.
        (spawn): Add process to liveProcesses list.
        (pid): Make package private.
        * java/lang/PosixProcess.h: Regenerate.
        * java/lang/natPosixProcess.cc: Include posix.h and posix-threads.h.
        Add useing namespace java::lang.
        (ProcessManagerInternal): New struct.
        (sigchld_handler): Rewritten.
        (init): Rewritten.
        (waitForSignal): Same.
        (reap): Same.
        (signalReaper): Same.
        (nativeDestroy): Call kill as ::kill.
        (nativeSpawn): Correct formatting.
        * classpath/lib/java/lang/PosixProcess$EOFInputStream.class:
Regenerate.
        * classpath/lib/java/lang/PosixProcess.class: Same.
        * classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/classpath/lib/java/lang/PosixProcess$EOFInputStream.class
    trunk/libjava/classpath/lib/java/lang/PosixProcess$ProcessManager.class
    trunk/libjava/classpath/lib/java/lang/PosixProcess.class
    trunk/libjava/include/posix-threads.h
    trunk/libjava/java/lang/PosixProcess$ProcessManager.h
    trunk/libjava/java/lang/PosixProcess.h
    trunk/libjava/java/lang/PosixProcess.java
    trunk/libjava/java/lang/natPosixProcess.cc
    trunk/libjava/posix-threads.cc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29324


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]