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CBA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>륹<EFBFBD><EBA5B9><EFBFBD>åɤϥ֥<CFA5><D6A5><EFBFBD>
|
|
|
|
|
<20><><EFBFBD><EFBFBD>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>˽<EFBFBD>λ<EFBFBD><CEBB><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
|
|
|
|
|
1999-08-13 01:37:52 -04:00
|
|
|
|
protect_signal
|
2010-06-23 04:12:54 -04:00
|
|
|
|
reset_signal
|
1999-08-13 01:37:52 -04:00
|
|
|
|
|
2010-06-23 04:12:54 -04:00
|
|
|
|
<20>ѻ<EFBFBD>ͽ<EFBFBD><CDBD><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD>
|
1999-08-13 01:37:52 -04:00
|
|
|
|
|
2010-06-23 04:12:54 -04:00
|
|
|
|
PTY.open
|
1999-08-13 01:37:52 -04:00
|
|
|
|
|
2010-06-23 04:12:54 -04:00
|
|
|
|
<20><><EFBFBD><EFBFBD>tty<74><79><EFBFBD><EFBFBD><EFBFBD>ݤ<EFBFBD><DDA4><EFBFBD><EFBFBD>ޥ<EFBFBD><DEA5><EFBFBD><EFBFBD><EFBFBD>¦<EFBFBD><C2A6><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>IO<49><4F><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥȥ<C8A4><C8A5>졼<EFBFBD><ECA1BC>¦<EFBFBD><C2A6>
|
|
|
|
|
<20>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>File<6C><65><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>ޤ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
|
|
|
|
PTY.check(pid[, raise=false])
|
1999-08-13 01:37:52 -04:00
|
|
|
|
|
2010-06-23 04:12:54 -04:00
|
|
|
|
pid<69>ǻ<EFBFBD><C7BB>ꤵ<EFBFBD>줿<EFBFBD>ҥץ<D2A5><D7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ξ<EFBFBD><CEBE>֤<EFBFBD><D6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¹<EFBFBD><C2B9><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD><EFBFBD>nil<69><6C>
|
|
|
|
|
<20>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD>Ƥ<EFBFBD><C6A4>뤫<EFBFBD><EBA4AB><EFBFBD>ߤ<EFBFBD><DFA4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>硢<EFBFBD><E7A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD>С<EFBFBD>
|
|
|
|
|
<20>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>Process::Status<75><73><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>֤<EFBFBD><D6A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
PTY::ChildExited<65>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
1999-08-13 01:37:52 -04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