Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1067889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:12:56+00:00 2026-05-16T20:12:56+00:00

I have some perl code which establishes a signal handler: $SIG{‘KILL’} = sub {

  • 0

I have some perl code which establishes a signal handler:

$SIG{'KILL'} = sub {
....
};

I’m tasked with porting this to windows and I was wondering how I could generate this signal from a C# class.

I saw the Process.Kill method in the System.Diagnostics.Process class which seems to allow me to create (via another method) and kill my process, but I can’t figure out how get it to send the signal to the perl script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:12:57+00:00Added an answer on May 16, 2026 at 8:12 pm

    You’re probably thinking of the TERM signal handler, since KILL can’t be caught. Anyway, Windows doesn’t use signals and while it lets you use them, it’s within a single thread only, no sending signals to other processes.

    You have a variety of other IPC mechanisms though, the usual one for requesting that another process exit gracefully is PostMessage(WM_QUIT), but that’s really only applicable to graphical applications which Perl scripts usually aren’t.

    A well supported approach on Windows would be for the parent process to create an event (with the inheritable flag) and pass the handle to the child process, putting it into the environment would be very convenient for Perl. Then the child can perform an action in response to the event.

    In addition to window message and kernel events you could use any of sockets, pipes, files, mailslots, process exit codes, shared memory, registry entries, and DDE to communicate between processes on Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have some code which returns a sites header content back: #!/usr/bin/perl use
I have some Perl code which has file glob operation. $file1 = @ARGV[0]; @res1
Have some Perl code which is using the DBI module - (the code is
I have some Perl code (for performance analysis) first developed under Linux which now
I have some Perl code that executes a shell script for multiple parameters, to
I have the following perl script: $myVariable = some value; //... some code ...
I have some text files which I am trying to transform with a Perl
I'm trying to update some existing code that normally runs a Perl script which
I have some source code files which came to me by an HTML output,
Perl is continuing to surprise me. I have a code which takes an input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.