source: CIVL/examples/languageFeatures/processLeak.cvl@ bb03188

main test-branch
Last change on this file since bb03188 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 393 bytes
Line 
1/**
2 * This example demonstrates the checking of process leak, i.e.,
3 * when the main function returns, there should be no other processes
4 * running or being blocked.
5 *
6 * Command line execution: civl verify memoryLeak.cvl
7 */
8#include<civlc.cvh>
9
10$proc mainP=$proc_null;
11
12void process(){
13 $when(mainP != $proc_null);
14 $wait(mainP);
15}
16
17void main(){
18 $spawn process();
19 mainP = $self;
20}
Note: See TracBrowser for help on using the repository browser.