curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Finding PID of a curl process

From: Dave Reisner <d_at_falconindy.com>
Date: Sat, 27 Apr 2019 20:36:20 -0400

On Sat, Apr 27, 2019 at 05:57:48PM +0000, Jon Harris wrote:
> Some programs will store their processed IDs in pid files. I am looking for this functionality for curl but don't see any way to find this. So I would like to request this as a command line option.
> I'm also looking for any work-arounds for this. I have a situation where I launch one or more curl operation in the background from a single-threaded C application. At some time later, I want to access it by PID to possibly kill it or find other info about it.
> Other relevant factors:
> 1) I am on a memory-limited system running uClinux. I don't have a 'pgrep' and would prefer not to search through the contents of /proc.
> 2) There may be dozens of curls open at any one time.

Shouldn't this be something that you handle from your C program? If
you're in control of the fork call, you know the PID.

dR
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-04-28