Skip to content

Commit

Permalink
Update example_process_4.f90
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Jan 28, 2025
1 parent e75bbc9 commit d1a4715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/system/example_process_4.f90
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
! Process example 4: Kill a running process
program example_process_kill
use stdlib_system, only: process_type, runasync, is_running, kill, elapsed, has_win32, sleep
use stdlib_system, only: process_type, runasync, is_running, kill, elapsed, is_windows, sleep
implicit none
type(process_type) :: process
logical :: running, success

print *, "Starting a long-running process..."
if (has_win32()) then
if (is_windows()) then
process = runasync("ping -n 10 127.0.0.1")
else
process = runasync("ping -c 10 127.0.0.1")
Expand Down

0 comments on commit d1a4715

Please sign in to comment.