Re: Substitute for kill(2)?
Re: Substitute for kill(2)?
- Subject: Re: Substitute for kill(2)?
- From: Rob Petrovec via Cocoa-dev <email@hidden>
- Date: Tue, 25 Jul 2023 07:35:29 -0600
Yeah, you might be able to send out a distributed notification and have the
menuling listen for it. When it receives it it can kill itself or go through
the normal teardown/quit procedure.
—Rob
> On Jul 25, 2023, at 6:15 AM, Alex Zavatone via Cocoa-dev
> <email@hidden> wrote:
>
> What if you called a method in the other process and the other process kills
> itself with a kill?
>
> Is kill no longer functional from any process?
>
>> On Jul 25, 2023, at 2:49 AM, Gabriel Zachmann via Cocoa-dev
>> <email@hidden <mailto:email@hidden>> wrote:
>>
>> Is there a simple way for one process to send a single signal to another
>> process?
>> Both processes are my programs, one is a regular app, the other a menu bar
>> item.
>> Both are launched by the same user.
>>
>> In the old unix days, I would have used kill(2) and send a SIGUSR1 , but as
>> far as I understand, this is no longer possible.
>> (At least, not without privilege elevation, which seems too complicated.)
>>
>> All hints and ideas will be appreciated!
>> Best regards, Gabriel
>>
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden <mailto:email@hidden>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden
> <mailto:email@hidden>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> <http://lists.apple.com/>
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden <mailto:email@hidden>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden