Commit 76c2c98
committed
Add a sleep in the NmapProcess.__wait. This has the down side of reducing the resolutionof our polling for output from or completion of the command, but has the benefit of greatly reducing CPU utilization in libnmap. Before this change we would sit at 100% CPU in libnmap while a long running scan was in progress.
1 parent eec2258 commit 76c2c98
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
| |||
0 commit comments