bugPipeline manipulation library - Bugs: bug #32710, pipeline_get_pid

 
 

bug #32710: pipeline_get_pid

Submitter:  Harald Sitter <apachelogger>
Submitted:  Tue 08 Mar 2011 01:00:07 PM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  cjwatson
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Mar 2011 11:08:48 PM UTC, comment #4: 

Thanks for testing.  Fixed in 1.2.0, just released.

Colin Watson <cjwatson>
Group administrator
Tue 08 Mar 2011 06:17:21 PM UTC, comment #3: 

Works like a charm, thanks :)

Harald Sitter <apachelogger>
Tue 08 Mar 2011 02:17:47 PM UTC, comment #2: 

If you'd like to test r143 in bzr (http://bzr.sv.nongnu.org/r/libpipeline/trunk, or should be mirrored to lp:libpipeline shortly), then that would be great.  It needs a -version-info bump before release due to the added API, but that won't be a problem for local testing.

Colin Watson <cjwatson>
Group administrator
Tue 08 Mar 2011 01:58:30 PM UTC, comment #1: 

OK, I'll add this.  It will need to be pipeline_get_pid (m_proc, n) for a command index n, though, as a pipeline may contain multiple processes.

Colin Watson <cjwatson>
Group administrator
Tue 08 Mar 2011 01:00:07 PM UTC, original submission:  

I am working on a thin wrapper library around vpnc which should return the pid of an instance upon start. Primarily to map the pid to the application's connection item and prevent multiple connections of the same kind. Also it then can easily differ between vpnc processes controlled by the application and others.

It would be very nice to have a pipeline_get_pid for this.

Usage would look like this:

pid_t Vpnc::pid()
{
    return pipeline_get_pid(m_proc);
}

pid_t Vpnc::start()
{
    pipeline_start(m_proc);
    return pid();
}

Harald Sitter <apachelogger>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cjwatson (Posted a comment)
  • -email is unavailable- added by apachelogger (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-18 cjwatson StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2011-03-08 cjwatson StatusNone Ready For Test
    2011-03-08 cjwatson Severity3 - Normal 1 - Wish
        Assigned toNone cjwatson

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code