Strange it works for me on Arch linux.

What system do you use? Do you use the latest fish? I thought this  
thread-bug was already fixed.
Btw., is the testusr.fish job is the first? (Stupid question, but it's  
better to check).

regards,
Maxim

On Mon, 27 Aug 2012 20:36:37 +0400, Лев Долгов <lev.dol...@gmail.com>  
wrote:

> I should have sent the email on both addresses.
>
> On Mon, Aug 27, 2012 at 7:35 PM, Лев Долгов <lev.dol...@gmail.com> wrote:
>
>> Nope. And I see a weird bug :(
>>
>> ~ cat > testusr.fish
>> function testusr --on-event USR1
>>     echo Got the signal
>> end
>> while true
>>     sleep 1
>> end
>> ~ command fish testusr.fish &
>> ~ kill -USR1 %Warning: principal_parser called off of main thread. Break
>> on debug_thread_error to debug.
>> ~ kill -USR1 %1Warning: job_get called off of main thread. Break on
>> debug_thread_error to debug.
>> ~ kill -USR1 %1
>> ~
>>
>> regards,
>> Leo
>>
>>
>> On Mon, Aug 27, 2012 at 2:44 PM, Maxim Gonchar <gma...@gmail.com> wrote:
>>
>>> If you make the following script (testusr.fish):
>>>
>>> ------------------------------**---------------------------
>>> function testusr --on-event USR1
>>>     echo Got the signal
>>> end
>>> while true
>>>     sleep 1
>>> end
>>> ------------------------------**---------------------------
>>>
>>> then run it as
>>> command fish testusr.fish &
>>> kill -USR1 %1
>>>
>>> do you see anything?
>>>
>>> regards,
>>> Maxim
>>>
>>>
>>>
>>> On Mon, 27 Aug 2012 15:01:37 +0400, Лев Долгов <lev.dol...@gmail.com>
>>> wrote:
>>>
>>>  I have a following script that changes a wallpaper every 15 minutes  
>>> under
>>>> xfce: http://pastie.org/4596618. I wish to make it possible to  
>>>> interrupt
>>>> the usual 15-minute delay and change the wallpaper at once if the  
>>>> script
>>>> is
>>>> signalled SIGUSR1. I find the corresponding PID and send the signal:
>>>>
>>>>  ps ax|grep change
>>>>>
>>>> 11437 pts/0    S      0:00 /usr/bin/fish /opt/myscripts/change-**
>>>> wallpaper2
>>>> 13580 pts/2    S+     0:00 grep change
>>>>
>>>>> kill -USR1 11437
>>>>>
>>>>
>>>> but nothing happens. Am I doing something wrong?
>>>>
>>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to