Skip to content

If pressed ctrl -c while pet is running, pet itself will be cancelled. #295

Answered by RamiAwar
sadayuki-matsuno asked this question in Q&A
Discussion options

You must be logged in to vote

The recommended way of using Pet is with the search shell functions. What this does is it copies the command to your terminal, and then you execute it just like any other command (no Pet, no subprocess, just simple shell execution).

This bypasses the "Subprocess model" and launches your command as a normal terminal process, avoiding all these issues!

The PR to support this with pet exec doesn't look like it's gonna get merged any time soon as there is still a tough unsolved issue.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RamiAwar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #170 on April 20, 2024 06:01.