Wrong args when issuing a SIGUSR1 signal

S

Sori Schwimmer

Hi All,

Say I launch a shell under KDE and start typing:

<code>
$ python
Python 2.4.2 (#10, Feb 16 2006, 17:44:37)
[GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1,
ssp-3.3.5.20050130-1, pie-8.7.7. on linux2
Type "help", "copyright", "credits" or "license" for
more information..... print 'Arguments:',a,b
....</code>

Now, suppose I'm launching a second shell, and typing:

<code>
$ ps ax
... (cut for brevity) ...
5780 pts/2 S+ 0:00 python
5781 pts/1 R+ 0:00 ps ax
$ python
Python 2.4.2 (#10, Feb 16 2006, 17:44:37)
[GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1,
ssp-3.3.5.20050130-1, pie-8.7.7. on linux2
Type "help", "copyright", "credits" or "license" for
more information.</code>

Now, back in the first shell, after pressing <Enter>
once, I get:

<code>
Arguments: 10 <frame object at 0x817f5a4>
</code>

Obviously, I put the two args after experimenting
without them, and receiving an error:

<code>
TypeError: fn() takes no arguments (2 given)
</code>

What is going on here? How should I handle this?

Thanks,
Sorin Schwimmer

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 

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,056
Messages
2,570,441
Members
47,119
Latest member
NoeliaIrby

Latest Threads

Top