setprocname

T

Tomasz Pajor

Hello,

Why there is no setprocname function in standard library, or am I
missing something?
 
G

Grant Edwards

Why there is no setprocname function in standard library, or am I
missing something?

Dunno. Before we start guessing, would you care to explain what you
think "setprocname" ought to do?
 
M

MRAB

Grant said:
Dunno. Before we start guessing, would you care to explain what you
think "setprocname" ought to do?
I think it's to set the name of the OS process.

On Windows, for example, all Python processes are called "python.exe" or
"pythonw.exe", so if you have several running it's not clear which is
which.

Have a look at:

http://bugs.python.org/issue5672
 
G

Grant Edwards

I think it's to set the name of the OS process.

On Windows, for example, all Python processes are called "python.exe" or
"pythonw.exe", so if you have several running it's not clear which is
which.

The Windows task manager won't display the entire command line, so
there's now way to know what's what? Seems like a problem in the
windows task manager to me...

I must admit that being able to use "killall" on a Python/Java/Bash
program would be handy sometimes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,477
Latest member
ColumbusMa

Latest Threads

Top