Re: [gccsdk] killpg function not implemented

2011-03-02 Thread Ralph Corderoy

Hi Alan,

 In the short term is there a workaround I can use to provide the
 functionality? I assume I would need to use the kill function and
 somehow finding the processes in the same group.

Perhaps the implementation of kill(2) has this already?  Linux's
killpg(2) says

On Linux, killpg() is implemented as a library function that makes
the call kill(-pgrp, sig).

which is how I traditionally think it was done, pre-killpg().

Cheers,
Ralph.


___
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK


Re: [gccsdk] killpg function not implemented

2011-03-02 Thread Alan Buckley

Ralph Corderoy wrote:


 In the short term is there a workaround I can use to provide the
 functionality? I assume I would need to use the kill function and
 somehow finding the processes in the same group.



Perhaps the implementation of kill(2) has this already?  Linux's
killpg(2) says

  On Linux, killpg() is implemented as a library function that makes
   the call kill(-pgrp, sig).

which is how I traditionally think it was done, pre-killpg().


Thanks for the suggestion, but looking at the gcc code it doesn't
appear to implement this (though I could be misreading the
code).

Regards,
Alan

___
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK


Re: [gccsdk] killpg function not implemented

2011-03-02 Thread John Tytgat
In message snt136-ds18c294cb4183b2093de83cf0...@phx.gbl
  Alan Buckley alan_...@hotmail.com wrote:

 Ralph Corderoy wrote:
 
   In the short term is there a workaround I can use to provide the
   functionality? I assume I would need to use the kill function and
   somehow finding the processes in the same group.
 
  Perhaps the implementation of kill(2) has this already?  Linux's
  killpg(2) says
 
On Linux, killpg() is implemented as a library function that makes
 the call kill(-pgrp, sig).
 
  which is how I traditionally think it was done, pre-killpg().
 
 Thanks for the suggestion, but looking at the gcc code it doesn't
 appear to implement this (though I could be misreading the
 code).

I'm not sure what you mean with 'gcc code', you mean glibc ?

killpg() can be easily be implemented in UnixLib but as the 'process group'
concept is minimally supported, killpg() will just be kill(-pgrp, sig).
I'm not sure if that's going sufficent for the program you're trying to
port.

John.
-- 
John Tytgat, in his comfy chair at home BASS
john.tyt...@aaug.net ARM powered, RISC OS driven

___
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK


Re: [gccsdk] killpg function not implemented

2011-03-02 Thread John Tytgat
In message c4d3dfad51...@hobbes.bass-software.com
  John Tytgat john.tyt...@aaug.net wrote:

 killpg() can be easily be implemented in UnixLib but as the 'process group'
 concept is minimally supported, killpg() will just be kill(-pgrp, sig).
 I'm not sure if that's going sufficent for the program you're trying to
 port.

I've added a minimal implementation with r5064.

John.
-- 
John Tytgat, in his comfy chair at home BASS
john.tyt...@aaug.net ARM powered, RISC OS driven

___
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK