Copy-on-Write Semantics

In a copy-on-write (COW) fork() implementation, when does the OS actually copy a page?